Use PEGetPrintOptions to retrieve the print options specified for the report (the options that are set in the Print common dialog box) and use them to fill in PEPrintOptions. Use this function to retrieve print options from the report in order to update them and pass back using PESetPrintOptions.
BOOL CRPE_API PEGetPrintOptions (
short printJob,
PEPrintOptions FAR *options );
Specifies the print job that you want to query to determine which print options have been set using the Print common dialog box. | |
Specifies a pointer to PEPrintOptions. |
VB Sample Code for modifying title, options, margins, and date |
Declare Function PEGetPrintOptions Lib "crpe32.dll" (
ByVal printJob As Integer, Options As PEPrintOptions ) As Integer
function PEGetPrintOptions (
printJob: Word;
var options: PEPrintOptions
): Bool stdcall;
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |